<template>
  <div class="not-found-container">
    <div class="not-found-content">
      <div class="error-code">404</div>
      <div class="error-title">页面不存在</div>
      <div class="error-description">抱歉，您访问的页面不存在或已被移除</div>
      <el-button type="primary" class="back-button" @click="goBack">返回首页</el-button>
    </div>
  </div>
</template>

<script setup name="NotFoundView">
import { useRouter } from 'vue-router';

const router = useRouter();

const goBack = () => {
  router.push('/');
};
</script>

<style scoped>
.not-found-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
}

.not-found-content {
  text-align: center;
  padding: 40px;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.18);
  animation: fadeInUp 0.8s ease-in-out;
}

.error-code {
  font-size: 120px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #1989fa, #5cadff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.error-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
}

.error-description {
  font-size: 16px;
  margin-bottom: 30px;
  opacity: 0.8;
}

.back-button {
  font-size: 16px;
  padding: 12px 24px;
  border-radius: 30px;
  background: linear-gradient(135deg, #1989fa, #5cadff);
  border: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.back-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(25, 137, 250, 0.3);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
</style>
